<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/tags.jsp"%>

<div class="row-fluid navbar">
	<div class="navbar-inner">
		<span class="brand">关键字一览</span>
		<a href="<s:url namespace="/keyword" action="input"></s:url>" class="btn btn-primary pull-right">新建</a>
	</div>
</div>

<div class="bs-search-panel">
	<s:form name="/keyword" action="list" cssClass="form-horizontal" theme="simple">
		<div class="control-group">
			<label class="control-label">关键字名称</label>
			<div class="controls">
				<input type="text" name="name" value="<s:property value="name"/>"/>
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<button type="submit" class="btn btn-middle btn-primary span2">检索</button>
			</div>
		</div>
	</s:form>
</div>

<div class="row-fluid table-list">
	
	<div class="pagination pagination-right">
		<ul>
			<li><a href="#">Prev</a></li>
			<li><a href="#">1</a></li>
			<li><a href="#">2</a></li>
			<li><a href="#">3</a></li>
			<li><a href="#">4</a></li>
			<li><a href="#">Next</a></li>
		</ul>
	</div>
	
	<table class="table table-bordered table-striped table-hover">
		<thead>
			<tr>
				<th>ID</th>
				<th>关键字中文名称</th>
				<th>关键字英文名称</th>
				<th>更新时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator var="keyword" value="keywordList">
			<tr>
				<td><s:property value="#keyword.id"/></td>
				<td><s:property value="#keyword.nameZh"/></td>
				<td><s:property value="#keyword.nameEn"/></td>
				<td><s:property value="#keyword.updateDt"/></td>
				<td>
					<a href="<s:url namespace="/keyword" action="input"><s:param name="id" value="#keyword.id"/></s:url>" class="btn btn-success btn-small">编辑</a>
					<a href="#" class="btn btn-danger btn-small">删除</a>
				</td>
			</tr>
			</s:iterator>
		</tbody>
	</table>
	
</div>